//
// Created by Administrator on 2024/4/27.
//

//#include "arrUtil.h"
#include <iostream>
#include <vector>
using namespace std;

void printArr(vector<int> vv, int i)
{
    if (i<vv.size())
    {
        cout<<vv[i]<<endl; // 正序打印
        printArr(vv,i+1);
//        cout<<vv[i]<<endl; // 倒序打印
    }
}

int main()
{
    vector<int> v{1,2,3,4,5,6};
    printArr(v,0);
    return 0;
}